
<font color="#FF0000">	      
			<!--<input type="checkbox" checked="checked" onclick="change();" name="loaitour" value="0" />Tour nội địa
			<input type="checkbox" name="loaitour" value="1" />Tour quốc tế-->
			<form action="timkiem.php" name="timkiem" method="get">
			<div id="tentour" style="color:#FF0000; font-weight:bold;"> Tìm Tour</div>
			<table align="left" width="100%" border="0" style="border:1px" >
			<tr bordercolor="#D4FFFF">
			<td style="padding:12px 0px 2px 6px; z-index:9; text-align:left; ">
					<select name="ltour">
							<option selected="selected" style=" padding-right:40px" value="">&nbsp;Loại tour&nbsp;</option>
						<?php
							$knoi=new csdl();
							$tk=$knoi->queryCsdl("select * from loaitour");
							while($kq=mysql_fetch_array($tk))
							{
						?>
			  				<option value="<?php echo $kq["stt_ltour"]; ?>"><?php echo $kq["ten_ltour"]; ?></option>
						<?php
							}
						?>
			  		</select>		
			  </td>
			</tr>
			<tr bordercolor="#D4FFFF">
			<td style=" margin:2px;padding:2px 0px 2px 6px;  z-index:8; text-align:left;">
				<select name="noikh">
							<option selected="selected" value="">Điểm đi</option>
			<?php
				$knoi=new csdl();
				$laydstinh=$knoi->queryCsdl("select mattp,ten from tinh_tp where stt='1'");
				while($dstinh=mysql_fetch_array($laydstinh))
				{
			?>
							<option value="<?php echo $dstinh["mattp"]; ?>"><?php echo $dstinh["ten"]; ?></option>
			<?php
				}
			?>
				</select>		</td>
			</tr>
			<tr bordercolor="#D4FFFF">
			<td style="padding:2px 0px 2px 6px;  z-index:7; text-align:left">
				<div id="idnoiden">
				<select name="noiden">
							<option selected="selected" value="">Điểm đến</option>
			<?php 
				$layddchan=$knoi->queryCsdl("select a.mattp,ten from tinh_tp a,codiemdungchan b where a.mattp=b.mattp and stt='1'");
				while($ddchan=mysql_fetch_array($layddchan))
				{
			?>
							<option value="<?php echo $ddchan["mattp"]; ?>"><?php echo $ddchan["ten"]; ?></option>
			<?php
				}
			?>
			  </select>	
			  </div>			</td>
			</tr>
			<tr bordercolor="#D4FFFF">
			<td style="padding:2px 0px 2px 6px;  z-index:6; text-align:left">
				<input type="text" name="ngaydi" size="10" id="ngaydi" value="Ngày đi" onfocus="if(this.value=='Ngày đi') this.value=''" onblur="if(this.value=='') this.value='Ngày đi'" /><input style=" background-image:url(pictures/nutlich.png)" type="button" name="Submit" value="..." onclick="showdata('idngaydi','lich.php');"  /><div id="idngaydi" onclick="chonlichthoigian(document.timkiem.ngaydi,'idngaydi')"></div>
			</td>
			</tr>
			<tr bordercolor="#D4FFFF">
			<td style="padding:2px 0px 2px 6px; ; z-index:5; text-align:left">
				<select name="tgian">
					<option value="" selected="selected">Thời gian</option>
			<?php
				$laythoigian=$knoi->queryCsdl("select distinct thoigian from tourdulich");
				while($thoigian=mysql_fetch_array($laythoigian))
				{
			?>
					<option value="<?php echo $thoigian["thoigian"]; ?>"><?php echo $thoigian["thoigian"]; ?></option>
			<?php
				}
			?>
				</select>
			</td>
			</tr>
			<tr bordercolor="#D4FFFF">
			<td style="padding:2px 0px 2px 6px;  z-index:4; text-align:left"><select name="giatour">
              <option value="">Giá tour</option>
			  <option value="1">Dưới 1 triệu</option>
              <option value="2">1 đến 3 triệu</option>
			  <option value="3">3 đến 5 triệu</option>
			  <option value="4">5 đến 7 triệu</option>
			  <option value="5">7 đến 10 triệu</option>
			  <option value="6">Trên 10 triệu</option>
            </select></td>
			</tr>
			<tr bordercolor="#D4FFFF">
			
			  <td align="center" style="padding:2px 0px 0px 6px; z-index:3; text-align:left"><input name="button" type="button" value="Tất cả" />
				<input type="submit" value="Tour mở" />			</td>
			</tr>
			</table>
			
			</form><br />
	      <form>
		  <?php 
		  $knoi=new csdl();
		  $kq=$knoi->queryCsdl("select distinct a.matour,anh,ngaydi,stt_thang from tourdulich a,ngaykhoihanh b where a.matour=b.matour order by matour desc limit 0,15" );
		  ?>
		  	<div id="tentour" style=" position:relative;color:#FF0000; font-weight:bold;"><span style="color:#FF0000">Tour mới</span></div>
			<div class="idshowanh" style="position:relative; margin:0px auto; width:150px; height:150px;" align="center" >
				<?php 
				$i=0;
				while($row=mysql_fetch_array($kq)) 
				{ 	if($i==0)
					{?>
					
						<input type="image" style="display: block;position:absolute;left:0; top:0;" src="<?php echo($row['anh']); ?>" width="150" height="150">
					<?php 
					}else {?>
					<input type="image" style="display: none; position:absolute;left:0; top:0;" src="<?php echo($row['anh']); ?>" width="150" height="150">	
				<?php
					} 
				}?>
			</div>		  
		</form></font>